package model;

/**
 * Class represents a customer of the store
 */
public class Customer {

	// customer's personal details
	private int number;
	private String name;
	private String userName;
	private String address;
	private CommonValues.paymentMethods paymentMethod;
	
	/**
	 * Constructor- creates a new customer with given details
	 * @param number- new customer's number
	 * @param name- new customer's name
	 * @param userName- new customer's user-name
	 */
	public Customer(int number, String name, String userName, String address,
			CommonValues.paymentMethods paymentMethod) {
	
		// set members according to given details
		this.number = number;
		this.name = name;
		this.userName = userName;
		this.address = address;
		this.paymentMethod = paymentMethod;
	}

	/**
	 * Returns customer's number
	 * @return customer's number attribute
	 */
	public int getNumber() { return number; }

	/**
	 * Returns customer's name
	 * @return customer's name attribute
	 */
	public String getName() { return name; }

	/**
	 * Returns customer's user-name
	 * @return customer's user-name attribute
	 */
	public String getUserName() { return userName; }

	/**
	 * Returns customer's address
	 * @return customer's address attribute
	 */
	public String getAddress() { return address; }

	/**
	 * Returns customer's payment method
	 * @return customer's payment method attribute
	 */
	public CommonValues.paymentMethods getPaymentMethod() { return paymentMethod; }
}